{{#if getContainerDataTask.isRunning}}

  {{pendulum-ellipsis-animation}}

{{/if}}

{{#if getContainerDataTask.last.isError}}

  {{empty-state heading="An error occurred getting this dataset's compliance policy"}}

{{else}}

  {{#if upstreams.length}}

    {{datasets/containers/upstream-dataset
      urn=urn
      platform=platform
      upstreamLineage=upstreams
      hasResolvedCompliance=complianceInfo.fromUpstream
      upstreamComplianceType=complianceInfo.complianceType
    }}

  {{else}}

    {{dataset-compliance
      datasetName=datasetName
      schemaless=schemaless
      platform=platform
      wikiLinks=@wikiLinks
      fieldReviewOption=@complianceTagFilter
      complianceInfo=complianceInfo
      exportPolicy=exportPolicy
      retentionPolicy=retentionPolicy
      complianceSuggestion=complianceSuggestion
      suggestionConfidenceThreshold=suggestionConfidenceThreshold
      isNewComplianceInfo=isNewComplianceInfo
      schemaFieldNamesMappedToDataTypes=schemaFieldNamesMappedToDataTypes
      complianceDataTypes=complianceDataTypes
      onComplianceTagFilterChange=@onComplianceTagFilterChange
      notifyOnComplianceSuggestionFeedback=(action "onSuggestionsComplianceFeedback")
      notifyOnChangeSetRequiresReview=(action "onCompliancePolicyChangeSetDrift")
      onSave=(action "savePrivacyCompliancePolicy")
      onSaveRetentionPolicy=(action "saveRetentionPolicy")
      onSaveExportPolicy=(action "saveExportPolicy")
      onReset=(action "resetAll")
      onComplianceJsonUpdate=(action "onComplianceJsonUpdate")
    }}

  {{/if}}

{{/if}}
